package com.pmenergy.view;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import com.pmenergy.control.ClienteHome;
import com.pmenergy.model.Cliente;
 



@ManagedBean
@ApplicationScoped

public class ClienteServiceBean {

	@EJB ClienteHome clienteHome; 
    private List<Cliente> clienteList;
    
    @PostConstruct
    public void init() {
    this.clienteList = clienteHome.findAllClientes();
    }
     
    public List<Cliente> getClienteList() {
        return clienteList;
    }
}


